<?php
class User_Service_Position
{
	public function __construct(){
		
	}
	
	/**
	 * 根据条件获取指定模块信息
	 */
	public function getByCond($cond,$type,$order,$count,$offset){
		$Obj = new User_Model_Position();
		return $Obj->getByCond($cond,$type,$order,$count,$offset);		
	}
	
	public static function getAll(){
		$positionObj = new User_Model_Position();		
		return $positionObj->getAll();		
	}
	public function getByUpid($up_id){
		$Obj = new User_Model_Position();
		return $Obj->getByUpid($up_id);		
	}
	
	public function add($row){
		$Obj = new User_Model_Position();
		return $Obj->add($row);		
	}
	
	public function update($row,$up_id){
		$Obj = new User_Model_Position();
		return $Obj->update($row,$up_id);		
	}
	
	public function delete($up_id){
		$Obj = new User_Model_Position();
		return $Obj->delete($up_id);		
	}
	

}